package com.campus.merchant.bean.goodsCategory;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品分类保存入参
 */
@Data
@ApiModel("商品分类保存入参")
public class GoodsCategorySaveBean {
    
    @ApiModelProperty(value = "分类名称", required = true)
    @NotBlank(message = "分类名称不能为空")
    private String name;
    
    @ApiModelProperty(value = "排序权重", required = true)
    @NotNull(message = "排序权重不能为空")
    private Integer sort;
    
    @ApiModelProperty(value = "商户ID", required = true)
    @NotNull(message = "商户ID不能为空")
    private Integer merchantId;
}